home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / util / cli / FastStrip.lha / FastStrip.doc next >
Encoding:
Text File  |  1998-03-07  |  1.2 KB  |  41 lines

  1. FastStrip V1.0 by Jason Frecknall 1998
  2. Mail: jay@blidworth.demon.co.uk
  3.  
  4. Introduction:
  5.  
  6. This program will search through a file and remove all instances of a
  7. particular character or optionally replace it with another.  The main reason
  8. for writing this program is because of another which did exactly the same,
  9. except that it was very slow (even on my 060) and also to learn how to use
  10. ReadArgs().  My program is many times faster as it is coded in assembler.
  11. The main use is for stripping PC return chrs from files as some files
  12. originating from PC have both types.
  13.  
  14. Usage:
  15.  
  16. FILE/A,VALUE1/N/A,VALUE2/N
  17.  
  18. FILE is the file to work on.  Once the characters have been removed it is
  19. written back over itself.
  20.  
  21. VALUE1 is the character to search for.
  22. A decimal value is required in the range of 0-255.
  23.  
  24. VALUE2 is optionally the character to replace VALUE1 with.
  25. A decimal value is required in the range of 0-255.
  26.  
  27. Useful values:
  28.  
  29.     Value    ASCII
  30.  
  31.     32    space
  32.     10    return
  33.     9    Tab
  34.     13    PC return
  35.  
  36. I was planning to make it possible to input hex values, but the modifier /N
  37. (number) doesn't automatically convert them.  If I did add it, it would mean
  38. changing the numeric fields to strings.  If you know otherwise, let me know.
  39.  
  40.  
  41.